Component({
  mixins: [],
  data: {
    listData: [],
    total: 0,
    page: 1,
    pagesize: 10,
  },
  props: {},
  didMount() { 
    this.getList(1);
  },
  didUpdate() {},
  didUnmount() {},
  methods: {
    getPageData(current){
      this.getList(current.detail.value);
    },
    // 列表数据
    getList(pageNum) {
      var apiurl = 'App.ShopRedsStatistics.SalesInfo';
      var params = {
        "page": pageNum,
        "pagesize": this.data.pagesize,
      };
      var app = getApp();
      var self = this;
      app.xdapis(apiurl, params, function (e) {
        my.hideLoading();
        // my.alert({ title: JSON.stringify(e) });
        console.log(1111111111111)
        console.log(e)
        self.setData({
          listData: e.list,
          total: e.page_info.total,
          page: e.page_info.page,
          pagesize: e.page_info.pagesize
        });
      });
    },
  },
});
